package routing

import "github.com/gin-gonic/gin"

func APIRouter() (router *gin.Engine) {
	router = gin.Default()
	for _, r := range NewRoutes().Routes {
		router.RouterGroup.Handle(r.Method, r.Pattern, r.HandlerFunc)
	}
	return
}
